package cn.wang.api;

import cn.wang.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface BrandApi {
    /**
     * 根据品牌id查询品牌
     * @param bid
     * @return
     */
    @GetMapping("/brand/bid")
    Brand queryBrandByBId(@RequestParam("bid")Long bid);

    @GetMapping("/brand/brands")
    List<Brand> queryBrandsByBIds(@RequestParam("bids")Long... bid);
}
